package org.jeecg.glr.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.glr.entity.GlrVideoYs;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * @Description: 视频萤石
 * @Author: jeecg-boot
 * @Date:   2020-02-11
 * @Version: V1.0
 */
public interface GlrVideoYsMapper extends BaseMapper<GlrVideoYs> {
    /**
     * 执行sql语句
     * @return
     *
     */
    List<Map<String, Object>> doGetListForJdbc(String sql);

    List<LinkedHashMap<String, Object>> selectSql(String sql);
    int insertSql(String sql);
    int updateSql(String sql);
    int deleteSql(String sql);
    void updateBatchSql(List<String> sqlList);

    @Select("select * from glr_video_ys where code=#{videoYsCode}")
    GlrVideoYs getTokenByVideoYsCode(@Param("videoYsCode")String videoYsCode);
}
